package com.cloudkinto.service.consumer.vo.yahoo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class YahooConsumerReq {
    private Long storeId;
    @ApiModelProperty("开始时间")
    private Date orderTimeFrom;
    @ApiModelProperty("结束时间")
    private Date orderTimeTo;

    private String orderId;
    @ApiModelProperty("是否自动  如果手动 需要传时间 或者订单号")
    private boolean isAuto;

    private Long syncId;

    public YahooConsumerReq(Long storeId, Date orderTimeFrom, Date orderTimeTo, String orderId, boolean isAuto) {
        this.storeId = storeId;
        this.orderTimeFrom = orderTimeFrom;
        this.orderTimeTo = orderTimeTo;
        this.orderId = orderId;
        this.isAuto = isAuto;
    }
}
